package cn.edu.lingnan.before.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("goodstable")
public class GoodsTable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String gname;
    private Double goprice; //原价
    private Double grprice; //折后价
    private Integer gstore; //库存
    private String gpicture; //图片
    @TableField("isRecommend")
    private Byte isRecommend; // 推荐
    @TableField("isAdvertisement")
    private Byte isAdvertisement; //
//    @TableField("goodstype_id")
    private Integer goodstypeId;
    @TableField(exist = false)
    private String typename;
}
